﻿/*
   Open Intel 
   Copyright © 2011 – ISC. All Rights Reserved.
*/
using System.Collections.Generic;

namespace OI.DataModel
{
    public class OISource
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public string Filter { get; set; }
        public int JurisdictionFK { get; set; }
    }


    public class OISourceEqualityCompare : IEqualityComparer<OISource>
    {
        bool IEqualityComparer<OISource>.Equals(OISource x, OISource y)
        {
            return x.Filter == y.Filter;
        }

        int IEqualityComparer<OISource>.GetHashCode(OISource obj)
        {
            return obj.Filter.GetHashCode();
        }
    }

}